import request from '@/utils/request'

// 查询证券账户列表
export function listFundSecurity(query) {
  return request({
    url: '/security/fundSecurity/list',
    method: 'get',
    params: query
  })
}

// 查询证券账户详细
export function getFundSecurity(id) {
  return request({
    url: '/security/fundSecurity/' + id,
    method: 'get'
  })
}

// 保存证券账户
export function saveFundSecurity(data) {
  return request({
    url: '/security/fundSecurity/save',
    method: 'post',
    data: data
  })
}

// 删除证券账户
export function delFundSecurity(id) {
  return request({
    url: '/security/fundSecurity/' + id,
    method: 'delete'
  })
}

// 导出证券账户
export function exportFundSecurity(query) {
  return request({
    url: '/security/fundSecurity/export',
    method: 'get',
    params: query
  })
}
